<?php
/**
 * Created by PhpStorm.
 * User: chengenghong
 * Date: 2021-09-14
 * Time: 11:35
 */

namespace G244\Factory;


class PHPTemplateFactory implements TemplateFactory
{
    public function createTitleTemplate(): TitleTemplate
    {
        // TODO: Implement createTitleTemplate() method.
        return new PHPTitleTemplate();
    }

    public function createPageTemplate(): PageTemplate
    {
        // TODO: Implement createPageTemplate() method.
        return new PHPPageTemplate($this->createTitleTemplate());
    }

    public function getRenderer(): TemplateRenderer
    {
        // TODO: Implement getRenderer() method.
        return new PHPRenderer();
    }


}
